import http from '@/utils/http'

export const addRole = (data) => {
  return () => {
    http.post('/sys/role', data)
  }
}

export const changeRole = (data) => {
  return async () => {
    const res = await http.put(`/sys/role/${data.id}`, data)
    console.log(res)
  }
}
